const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // avatar: state => state.user.avatar, //返回用户头像
  avatar: state => state.user.userInfo.staffPhoto,
  // name: state => state.user.name
  name: state => state.user.userInfo.username, //返回用户名
  comanyId: state => state.user.userInfo.comanyId //返回公司ID
}
export default getters
